package com.cloud.lan.entity.model.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by zhouquan on 2022/5/1.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lan_booking_activity")
public class LanBookingActivityDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * LANCASTER
     */
    private String appCode;

    /**
     * 活动名称
     */
    private String acName;

    /**
     * 活动类型 1:H5预约
     */
    private Integer acType;

    /**
     * 活动数量
     */
    private Integer acCount;

    /**
     * 活动描述
     */
    private String acDesc;

    /**
     * 活动封面地址
     */
    private String acImg;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 1:已上架(进行中) 2:已下架 3:已失效
     */
    private Integer status;

    /**
     * 扩展字段
     */
    private String extension;

    /**
     * 是否删除，0.否，1.是
     */
    @TableLogic
    private Integer isDeleted;

    /**
     * 创建时间
     */
    private Date createTime;

    private Date updateTime;
}
